package com.web.mqtt.mapper;

import com.web.common.iot.mqtt.entity.MqttUser;
import com.web.common.iot.mqtt.entity.MqttUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhouhui
 * @since 2024-01-05
 */
@Mapper
public interface MqttUserMapper extends BaseMapper<MqttUser> {

	/**
	 * 获取mqtt客户端信息列表
	 * @param page 分页信息
	 * @param condition 查询条件
	 * @return IPage<MqttUser> 分页信息列表
	 *
	 * @author zhouhui
	 * @since 2024.02.22 
	 */
	IPage<MqttUserEntity> getMqttUserList(Page<MqttUser> page, @Param("condition") MqttUser condition);
}
